/**
 * 添加菜单/权限
 */
export interface AddShopAdminPermission {
  type: number
  parentId: number
  title: string
  path: string
  name: string
  component: string
  redirect: string
  level: number
  icon: string
  meta: string
  state: number
  mark: string
  sort: number
  isShow: number
}

/**
 * 菜单树形结构类型
 */
export interface MenuTree {
  id: number
  parentId: number
  title: string
  type: number
  level: number
  icon?: any
  children: any[]
}

// --------------------------------------------------

export interface MenuDetailAndButtonPermission {
  shopAdminPermission: ShopAdminPermission
  buttonPermissionList: ButtonPermissionList[]
}

export interface ButtonPermissionList {
  id: number
  title: string
  mark: string
  sort: number
}

export interface ShopAdminPermission {
  id: number
  parentId: number
  title: string
  path: string
  name?: any
  component: string
  redirect?: any
  type: number
  level: number
  icon?: any
  meta?: any
  state: number
  mark?: any
  sort: number
  isShow: number
}

export interface AddUpdateShopAdminPermission {
  type: number
  parentId: number
  title: string
  path: string
  name: string
  component: string
  redirect: string
  level: number
  icon: string
  meta: string
  state: number
  mark: string
  sort: number
  isShow: number
}
